<?php

$ds = disk_total_space("/");
$df_c = disk_free_space("/");

echo '<h2>Spazio Disco: '.$_SERVER['SERVER_NAME'].' ('.$_SERVER['SERVER_SOFTWARE'].')</h2>';
echo 'Spazio Totale: '.number_format($ds, 0, ',', '.').'<br/>';
echo 'Spazio Disponibile: '.number_format($df_c, 0, ',', '.').' ('.number_format(($df_c/$ds)*100, 2, ',', '.').'%)<br/>';

?>